package com.gemantic.user.controller;

import io.swagger.annotations.ApiOperation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.gemantic.user.model.User;
import com.gemantic.user.service.UserService;

/**
 *
 *@author wangsf
 *@date 2017年7月16日 下午2:48:10
 *
 */
@RestController
@RequestMapping("/sys")
public class UserController {
	
	@Autowired
	private UserService userService;
	
	@ApiOperation(value="查询用户信息")
	@RequestMapping("/user")
	public List<User> getUserList(@RequestParam(value = "cp", defaultValue = "1") Integer cp,
			@RequestParam(value = "ps", defaultValue = "2") Integer ps) {
		return userService.findAll();
	}

}
